package com.atguigu.gmall.web;

import com.atguigu.gmall.product.entity.SkuInfo;
import com.atguigu.gmall.product.entity.SpuSaleAttr;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author:ahang
 * @create:2022-10-04 0:19
 * @Description:
 */
@Data
public class SkuDetailVo {
    //当前商品分类信息
    CategoryView categoryView;
    //sku详情信息.图片列表
    SkuInfo skuInfo;
    //sku价格
    BigDecimal price;
    //当前sku对应的spu定义的所有销售属性名和值
    List<SpuSaleAttr> spuSaleAttrList;

    String valueSkuJson;

    @Data
    public static class CategoryView{
        private Long category1Id;
        private String category1Name;

        private Long category2Id;
        private String category2Name;

        private Long category3Id;
        private String category3Name;
    }

}
